<!Doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>大旺福--{$title}</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/assets/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="/assets/layui/css/global.css" media="all">
</head>
<body>
<div class="layui-layout layui-layout-admin">

	<!-- header start -->
	{include file="layout/header.html"}
	<!-- header end -->

	<!-- nav start-->
	{include file="layout/nav.html"}
	<!-- nav end-->

	<!-- main start -->
	<div class="layui-body site-demo">
		<div class="layui-main">
			<fieldset class="layui-elem-field layui-field-title">
				<legend>{$title}</legend>
			</fieldset>
			<div class="site-block">
				<div class="searchbar">
					<form action="#" method="get" class="layui-form search-from">
						<div class="layui-form-item">
							<div class="layui-input-inline">
								<select class="auto" name="year">
									<option value="0">选择年份</option>
									<option value="2017"{if $selectYear eq 2017} selected {/if}>2017</option>
			                			<option value="2018"{if $selectYear eq 2018} selected {/if}>2018</option>
			                    		<option value="2019"{if $selectYear eq 2019} selected {/if}>2019</option>
			                    		<option value="2020"{if $selectYear eq 2020} selected {/if}>2020</option>
								</select>
							</div>
							<div class="layui-input-inline">
								<select class="auto" name="manager">
									<option value="0" selected>选择区域经理</option>
									{foreach from = $managerList item = manager}
									<option value="{$manager.id}" {if $manager_id eq $manager.id} selected{/if}>{$manager.realname}</option>
									{/foreach}
								</select>
							</div>
							<div class="layui-input-inline button-warp">
								<button type="submit" class="layui-btn layui-btn-small search-button" style="margin-top:5px;"><i class="layui-icon">&#xe615;</i> <span>查看</span></button>
							</div>
						</div>
					</form>
				</div>
				<hr />
				<div class="content">
					{if $manager_id eq 0}
					{foreach from=$newFeeData item=fee key=key}
					<h3>{$key}月提成</h3>
					<table class="layui-table">
					  <colgroup>
					    <col width="150">
					    <col width="200">
					  </colgroup>
					  <thead>
					    <tr>
					      <th>区域经理</th>
					      <th>提成</th>
					    </tr> 
					  </thead>
					  <tbody>
					  	{foreach from=$fee item=one}
					    <tr>
					      <td>{$one.realname}</td>
					      <td>{$one.amount}</td>
					    </tr>
					    {/foreach}
					  </tbody>
					</table>
					{/foreach}
					{else}
					
						<table class="layui-table">
						  <colgroup>
						    <col width="150">
						    <col width="200">
						  </colgroup>
						  <thead>
						    <tr>
						      <th>时间</th>
						      <th>提成</th>
						    </tr> 
						  </thead>
						  <tbody>
						  	{foreach from=$newFeeData item=fee key=key}
						  	{foreach from=$fee item=one}
						    <tr>
						      <td>{$key}月</td>
						      <td>{$one.amount}</td>
						    </tr>
						    {/foreach}
						    {/foreach}
						  </tbody>
						</table>
						
					{/if}
				</div>
			</div>

		</div>
	</div>
	<!-- main end -->

</div>
{include file="layout/footerJs.html"}
</body>
</html>